package com.x.Part9_继承;

/**
 * ClassName: KidTest
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.02.27 21:24
 */
public class KidTest {
    public static void main(String[] args) {
        Kid k1 =new Kid();
        k1.setSex(0);
        k1.setSalary(50);
        k1.setAge(3);

        k1.printAge();

        k1.workOrRest();
    }
}
